﻿<?php include('config.php');
include ('lang/rus.php');
include ('mods_config.php');
include ('status.php');

require 'function.php';
if($siteonline==1)
{
print $siteoff;
exit();
}
if($lang=='rus')
{
include ('lang/rus.php');
}
elseif($lang=='en')
{
include ('lang/en.php');
}

?>
<html>
<head>
<TITLE>Aion KomsFUN</TITLE>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="skins/aion3/style/favicon.ico">
<link media="all" href="style.css" type="text/css" rel="stylesheet">
</head>
<body>
<?php $msconn = mysql_connect($host, $login, $pass) or die("Couldnt connect to MySQL server.");
$db = mysql_select_db($db, $msconn) or die("Couldnt connect to DB.");
?>
<center>
<div id="mainwrapper" align='left'>
<div id="wrapper" >
<left>
<div class="status" id="top">
<?php
if($loginonline=="Off" & $gameonline=="Off"){
print '<font color="red"><center>Все сервера выключены</center></font>';
}
else {
echo '
<strong><font color=#071d59 size="2">Логин сервер:'.$loginonline.'&nbsp;&nbsp; </font></strong> 
<div class="on">
</div>      
<font color=#071d59 size="2">Гейм серевер:'.$gameonline.'</font>
<div class="on">
</div>  
<font color=#071d59 size="2">&nbsp;&nbsp; Online:'.$playersonline.'</font>
<div class="on">
</div>' ;}?>
</left>
</div>
<div id="box_left" class="box">
<div class="group">Меню:3</div>
<div class="links">
<?php echo '<center>
<a align="center" href="index.php?action=news" alt="'.$rnews.'" title="'.$rnews.'"><center><font color="black">'.$rnews.'</center></a></font>
<a href="index.php?action=info" alt="'.$rserverinfo.'" title="'.$rserverinfo.'"> <center><font color="black">'.$rserverinfo.'</center></a></font>
<a align="center" href="index.php?action=features" alt="'.$rfeatures.'" title="'.$rfeatures.'"> <center> <font color="black">'.$rfeatures.'</center></a></font>
<a align="center" href="index.php?action=register" alt="'.$rregister.'" title="Register"><center> <font color="black">Register</center></a></font>
<a align="center" href="index.php?action=abyss" alt="'.$rranking.'" title="'.$rranking.'"><center><font color="black">'.$rranking.'</center></a></font>
<a align="center" href="index.php?action=online" alt="'.$ronline.'" title="'.$ronline.'"><center><font color="black">'.$ronline.'</center></a></font>
<a align="center" href="index.php?action=downloads" alt="'.$rdownloads.'" title="'.$rdownloads.'"><center><font color="black"> '.$rdownloads.'</center></a></font></center>
'?>
</div>
<?php
if($votemod==0)
{
print '';
}
else
{
print '
<div class="group">Vote</div>
<div align="center">
"'.$votelink1.'" <br />
"'.$votelink2.'" <br />
"'.$votelink3.'" <br />
"'.$votelink4.'" <br />
"'.$votelink5.'"
</div>
';
}
?>
<div class="group">Лучшие легионы.</div>
<div class="links">
<?php 
$data=getLegionss();
echo  "
<a><font color=black>&nbsp; &nbsp;&nbsp; &nbsp;<left>Название</left>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ||&nbsp;&nbsp; &nbsp;<right>Очки</right></a>
<a ><font color=black>  ".$data[names][0]." &nbsp;|| &nbsp; </font> <font color=black>   ".$data[cps][0]." </a>
<a ><font color=black>   ".$data[names][1]." &nbsp;||  &nbsp;</font> <font color=black>  ".$data[cps][1]." </a>
<a ><center><font color=black>   ".$data[names][2]." &nbsp;||  &nbsp;</font> <font color=black>  ".$data[cps][2]." </center></a>
<a ><center><font color=black>   ".$data[names][3]." &nbsp;||  &nbsp;</font> <font color=black>  ".$data[cps][3]." </center></a>
<a ><center><font color=black>   ".$data[names][4]." &nbsp;||  &nbsp;</font> <font color=black>  ".$data[cps][4]." </center></a>
";?>
</div>
</div>
<div id="box_right" class="box">
<div class="group">Полезные ссылки</div>
<div class="links">
<a href="ftp://172.19.24.250" alt="Софт" title="Софт"><font color='black'>Фтп с софтом.</a>
</div>
<div class="group">Пятерка PK</div>
<div class="links">
<?php 
$data=getPlayerss();
for ($i=0;count($data["name"])>$i;$i++) 
if($data[race]==asmo)
{
$coloro='black';

}
else
{
$coloro='white';
}
echo "
<a ><center><font color=black>  ".$data[name][0]." &nbsp;||&nbsp; </font><font <font color=black>   ".$data[kills][0]." Убийств</center></a>
<a ><center><font color=black>  ".$data[name][1]." &nbsp; ||&nbsp;</font><font <font color=black>  ".$data[kills][1]." Убийств</center></a>
<a ><center><font color=black>  ".$data[name][2]." &nbsp;||&nbsp;</font><font <font color=black> ".$data[kills][2]." Убийств</center></a>
<a ><center><font color=black>  ".$data[name][3]." &nbsp;||&nbsp;</font><font <font color=black>  ".$data[kills][3]." Убийств</center></a>
<a ><center><font color=black>  ".$data[name][4]." &nbsp;||&nbsp;</font><font <font color=black> ".$data[kills][4]." Убийств</center></a>";
?>
</div>
<div class="group">Победитель турнира</div>
<div class="links">
<a href="http://172.19.9.36/index.php?subaction=showcomments&id=%EF%BB%BF&archive=&start_from=&ucat=&"><font color="black">Возможно это ты.</a>
</div>
</div>
<div align='center'>
<div class="content2">
<div class="content1">
<div class="content">
<div id="content-name">
<p>
<?php switch(@$_REQUEST["action"]) {
case "news": echo "News";break;
case "info": echo "Server info";break;
case "features": echo "Features";break;
case "register": echo "Registration";break;
case "abyss": echo "Ranking";break;
case "online": echo "Online players";break;
case "downloads": echo "Downloads";break;
default: echo "News";break;
}
?>
</p>
</div>
<div id="con"> 
<?php  
$news = GetNews();
echo $news[text][0];
?>
</div>
</div>
</div>
</div>
</center>
<div class="ffix">&nbsp;</div>
</div>
<center>
<div class="footer"><font color='orange'>LogOut Dev.</font></div>
</body>
</html>

